import net.optix.ip.model.ModelLocator;
import net.optix.ip.vo.InventionVO;

import views.invention.ViewInventionInformation;
[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

private function back():void
{
	model.view	=	0;
	model.view	=	model.oldView;
}

private function viewPublishedInvention():void
{
	var url:URLRequest	=	new URLRequest();
	url.url				=	model.urlH+"Inventions/"+
		model.currentInvention.title+"_"+
		model.currentInvention.inventionID+".html";
	navigateToURL(url,"_blank");
}

private function showAssign():void
{
	assign.visible	=	true;
	assign.percentHeight	=	0;
}

private function close():void
{
	assign.visible	=	false;
	assign.height	=	0;
}